home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / cd-sup / viruscheckerii / arexx / onlinecheck.rexx next >
OS/2 REXX Batch file  |  1998-05-24  |  775b  |  36 lines

  1. /* Notifywatch example
  2.  
  3.    Simple example which shows how you can easily have VC check
  4.    recent uploaded files. This script offcourse has to be expanded
  5.    if you want more then VC just telling you what has happened.
  6.    Another drawback is also that it stops as soon as it has received
  7.    one notify change.
  8.  
  9.    Maybe someone likes to code this in a better way, I am not an Arexx
  10.    coder you know.
  11.  
  12. */
  13.  
  14. options results
  15.  
  16. address 'Virus_CheckerII' 'NOTIFYWATCH Pinkie'
  17.  
  18. if VCHECK.0.0 = 0 then do
  19.     say 'No viruses found in scan'
  20.     call stopnotify
  21.     exit
  22. end
  23.  
  24. say 'Viruses found: ='VCHECK.0.0
  25.  
  26. do x=1 to VCHECK.0.0
  27.     say 'Filename was "'VCHECK.x.1'" and virus was "'VCHECK.x.2'"'
  28. end
  29.  
  30. call stopnotify
  31. exit
  32.  
  33. stopnotify:
  34. address 'Virus_CheckerII' 'STOPNOTIFYWATCH Pinkie'
  35. return
  36.